import React, { Component } from 'react';

const style = {
  color: 'white',
  backgroundColor: 'orange',
  WebkitTransition: 'all',
  // ms 是唯一小写的浏览器前缀
  msTransition: 'all',
  width: 100, // react 会自动添加px
  height: 100,
  lineHeight: '100px' // react 不会自动添加px
}

class StyleDemo extends Component {

  render() {
    return (
      <div>
        <div style={style}>123123</div>
      </div>
    );
  }

}

export default StyleDemo;
